package com.nuoniu.sibanyun.entity.erp.in;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 仓库管理
 * </p>
 *
 * @author 小啊刚
 * @since 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("scb_warehouse")
@ApiModel(value="InWarehouse对象", description="仓库管理")
public class InWarehouse extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "仓库编码")
    @TableField("wh_code")
    private String whCode;

    @ApiModelProperty(value = "使用编码级次")
    @TableField("grade_rule_level")
    private Integer gradeRuleLevel;

    @ApiModelProperty(value = "使用的编码规则")
    @TableField("grade_rule_str")
    private String gradeRuleStr;

    @ApiModelProperty(value = "仓库名称")
    @TableField("wh_name")
    private String whName;

    @ApiModelProperty(value = "仓库类别(1普通仓/2现场仓/3委外仓)")
    @TableField("wh_class")
    private Integer whClass;

    @ApiModelProperty(value = "货位管理(1是 0否)")
    @TableField("storage_bin")
    private Boolean storageBin;

    @ApiModelProperty(value = "参与可用量(1是 0否)")
    @TableField("available")
    private Boolean available;

    @ApiModelProperty(value = "不核算仓(1是 0否)")
    @TableField("no_accounting")
    private Boolean noAccounting;

    @ApiModelProperty(value = "所属营销机构")
    @TableField("agencies")
    private String agencies;

    @ApiModelProperty(value = "仓库地址")
    @TableField("wh_address")
    private String whAddress;

    @ApiModelProperty(value = "所属部门ID")
    @TableField("wh_department_id")
    private Integer whDepartmentId;

    @ApiModelProperty(value = "所属部门")
    @TableField("wh_department")
    private String whDepartment;

    @ApiModelProperty(value = "负责人ID")
    @TableField("wh_person_id")
    private Integer whPersonId;

    @ApiModelProperty(value = "负责人")
    @TableField("wh_person")
    private String whPerson;

    @ApiModelProperty(value = "联系电话")
    @TableField("wh_telephone")
    private String whTelephone;

    @ApiModelProperty(value = "手机号")
    @TableField("wh_mobile")
    private String whMobile;

    @ApiModelProperty(value = "库管员IDs(可以有多高库管员)")
    @TableField("wh_keeper")
    private String whKeeper;

    @ApiModelProperty(value = "库管员名称")
    @TableField("wh_keeper_name")
    private String whKeeperName;

    @ApiModelProperty(value = "状态0正常1删除2停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人名称")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人名称")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "修改人名称")
    @TableField(exist = false)
    private String keyWord;

}
